import request from "../utils/request";

// 获取学习时长限制
export const getDuration = () => {
  return request({
    url: "/duration/get",
    method: "GET",
  });
};

// 修改学习时长限制
export const updateDuration = (data) => {
  return request({
    url: "/duration/update",
    method: "POST",
    data,
  });
};

